package com.huabo.fxgl.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;
import lombok.Value;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.HashSet;
import java.util.Set;

/**
 * <p>
 * 
 * </p>
 *
 * @author LiYe
 * @since 2022-08-01
 */
@Data
@ToString
@TableName(value = "TBL_RISK_ASSPLAN_RISK", resultMap = "RM_RISK_ASSPLAN_RISK")
public class RiskAssplanRisk implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 风险ID
     */
    @TableField(exist = false)
    private Risk risk;

    @TableId
    private BigDecimal assriskid;

    /**
     * 评估计划ID
     */

    @TableField(exist = false)
    private RiskAssplan assplan;

//    @TableField("ASSPLANID")
//    private BigDecimal assplanid;
    /**
     * ID
     */
    @TableField(exist = false)
    private RiskRiskmarking riskmarking;
    /**
     * 备注
     */
    private String memo;

    /**
     * 状态
     */
    private String assstatus;

    /**
     * 风险等级
     */
    private String risklevel;

    /**
     * 发生频率
     */
    private BigDecimal frequency;

    /**
     * 严重程度
     */
    private BigDecimal severity;

    /**
     * 时间
     */
    private LocalDateTime assdate;

    @TableField(exist = false)
    private Set<RiskRiskmarking> tblRiskRiskMarking = new HashSet<RiskRiskmarking>();



//    There is no setter for property named 'assriskid' in 'class com.huabo.fxgl.entity.RiskAssplanRisk'

}
